﻿using Microsoft.AspNetCore.Mvc;
using mozhi.smarterp.Finance.Querys;
using mozhi.smarterp.Finance.Reports;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Finance.Logs
{
    [RemoteService]
    [Route("api/v1/logs/operation")]
    public class OperationLogController :BaseController
    {
        private IOperationLogAppService _appService;

        public OperationLogController(IOperationLogAppService appService)
        {
            _appService = appService;
        }

        [HttpGet]
        public async Task<PagedResultDto<OperationLogDto>> GetOperationLogAsync(OperationLogPageQuery query)
        {
            var result = await _appService.FindAsync(query);

            return result;
        }
    }
}
